﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Core
{
    /// <summary>
    /// 缓存键常量
    /// </summary>
    public static class CacheKeyConsts
    {
        /// <summary>
        /// 权限-模块
        /// <para>
        /// {0}:角色唯一Code
        /// </para>
        /// </summary>
        public const string PermissionModule = "Module#{0}";
        /// <summary>
        /// 权限-资源(可指定租户)
        /// <para>
        /// {0}:资源标识 {1}:租户id
        /// </para>
        /// </summary>
        public const string PermissionResource = "Resource#{0}-{1}";
        /// <summary>
        /// 权限资源存储值格式
        /// </summary>
        public const string PermissionResourceValue = "ResourceValue#{0}#{1}";
        /// <summary>
        /// 权限-数据预览(可指定租户)
        /// <para>
        /// {0}:规则标识 {1}:租户id
        /// </para>
        /// </summary>
        public const string PermissionDataPerview = "DataPerview#{0}-{1}";
        /// <summary>
        /// 会话安全标识
        /// <para>
        /// {0}:用户id
        /// </para>
        /// </summary>
        public const string SessionSafetyIdentify = "SessionSafetyIdentify@{0}";
    }
}
